#include "help.h"

Help::Help() {
	AllHelp.push_back(
			make_pair("sfrom",
					"-sfrom PATH to PATH                -synchronize files\n"));
	AllHelp.push_back(
			make_pair("exfrom",
					"-exfrom PATH to PATH               -extermiante files\n"));
	AllHelp.push_back(
			make_pair("list",
					"-list PATH name                    -lists files in a txt file where is 'name' put name\n"));
	AllHelp.push_back(
			make_pair("shieldinfo",
					"-shield                            -returns info about shield\n"));
	AllHelp.push_back(
			make_pair("shield_on",
					"-shield on                         -turn on shield\n"));
	AllHelp.push_back(
			make_pair("shield_off",
					"-shield off                        -turn off shield\n"));
	AllHelp.push_back(
			make_pair("shield_clear",
					"-shield clear                      -clears shield\n"));
	AllHelp.push_back(
            make_pair("shield_size", "-shield size (s)                   "
                    "-restriction by size; there where is (s) put size in MB\n"));
	AllHelp.push_back(
			make_pair(
					"shield_extension",
					"-shield extension (ext) (exc/onl)  -restriction by extension;"
					"in addition exc - without some extension or onl - with some extension\n"));
	AllHelp.push_back(
			make_pair(
					"shield_name",
					"-shield name (nm) (exc/onl)        -restriction by name; exc - without some files; onl with some files\n"));
	AllHelp.push_back(
			make_pair("shield_folders",
					"-shield folders (nm) (s/e)         -allows to synchronize/exterminate with subfolders\n"));
	AllHelp.push_back(
			make_pair("Shield_default", "Shield default settings: off, no restrictions\n"));
	AllHelp.push_back(
			make_pair("About PATH",
					"About PATH: use '/ ' before ' ' in folders name\n"));
}

void Help::showAllHelp() {
	int length = AllHelp.size();

	for (int i = 0; i < length; i++) {
		cout << AllHelp[i].second;
	}
}
